package com.lotter.api.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.lotter.common.exception.LotterCusException;
import com.lotter.dao.ClickRecordMapper;


@Service
public class ClickRecordService {
	
	@Autowired
	private ClickRecordMapper clickRecordMapper ;
	
	
	
	public Boolean findRecord(Long uid,Long hid,Long nid) throws LotterCusException{
		int number = 0 ;
		number = clickRecordMapper.numRecord(uid, hid,nid);
		if(number == 0){
			return false ;
		}
		return true;
	}
	

}
